<?php

namespace app\api\service\shop;


use app\admin\model\Carousel;

/**
 * 首页轮播图
 */
class CarouselService
{

    public function getCarouseList()
    {
        return Carousel::where('status', 1)->field(['id', 'url', 'image'])->order('weigh', 'desc')->select()
            ->each(function ($item) {
                $item->image = "https://battery001.zthj.net/" . $item->image;
            });
    }
}